<template>
    <div class="public-order">
        <div class="name_time">
            <div class="name">{{title}}</div>
            <div class="time" v-if="time">{{time}}</div>
        </div>
        <div class="num_price">
            <div class="num" v-if="weight">重量： {{weight}}kg</div>
            <!-- <div class="num" v-if="number">数量： {{number}}个</div> -->
            <div class="num" v-if="unit">{{unit}}： {{number}}</div>
            <div class="price" v-if="price">￥{{price}}</div>
            <div class="price-recovery" v-if="recovery">回收报价：<span>￥{{recovery}}</span></div>
        </div>
    </div>
</template>

<script>
    export default {
        name: "public",
        props:['title', 'unit', 'weight','number','time','price','recovery'],
        data:function(){
            return{
                
            }
        },
    }
</script>

<style lang="scss" scoped>
    .public-order{
        .name_time{
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin: 0.6rem 0;
            .time{
                font-size: 1.2rem;
                color: #999999;
            }
            .name{
                font-size: 1.6rem;
                color: #333333;
            }
        }
        .num_price{
            margin: 0.6rem 0;
            display: flex;
            justify-content: space-between;
            align-items: center;
            .num{
                font-size: 1.2rem;
                color: #999999;

            }
            .price,.price-recovery{
                font-size: 1.3rem;
                color: #333333;
            }
            .price-recovery{
                span{
                    color: #FF0101;
                }
            }
        }


    }

</style>
